package com.example.sofclick;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;

public class NewGroupActivity extends Activity{
	EditText edT;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.newgroup);
		edT=(EditText)findViewById(R.id.editText);
	}
	
	public void myClickHandler(View target){
		 if (target.getId() == R.id.ngbtn){
			 Intent i=new Intent();
			 String namegroup=edT.getText().toString();
			 i.putExtra("result", namegroup);
			 setResult(RESULT_OK, i); 
			 finish();
		 }		
	}
}
